import EditModalForm from '@/components/EditModalForm';
import { EditModalProps } from '@/typing';
import { ProFormText } from '@ant-design/pro-components';
import React from 'react';

const SystemDeptEditModal: React.FC<EditModalProps> = (props) => {
  return (
    <EditModalForm {...props}>
      <ProFormText
        label={'部门名称'}
        name={'deptName'}
        rules={[{ required: true, message: '请输入部门名称！' }]}
      />
      <ProFormText
        label={'显示排序'}
        name={'orderNum'}
        rules={[{ required: true, message: '请输入显示排序！' }]}
      />
    </EditModalForm>
  );
};

export default SystemDeptEditModal;
